package cn.edu.nwafu.hjpg.service;

import cn.edu.nwafu.hjpg.entity.Element;
import cn.edu.nwafu.hjpg.entity.Hjxwb;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

public interface ElementService {
//    List<Object> findAll();
    Page<?> findByPageLike(String keyword,String type, Pageable pageable);
    List<Element> findAll();
//    Page<?> findByType(String type,String keyword,Pageable pageable);
    Page<?> findByGaoJi(String type,String keyword,Pageable pageable);
    Page<?> findByZwmc(String zwmc,Pageable pageable);
    Element findByWzbm(String baseinfoWzbm);
    Page<?> findByYwmc(String ywmc,Pageable pageable);
    Page<?> findByCas(String cas,Pageable pageable);
    Page<?> findBySmiles(String smiles,Pageable pageable);
    Page<?> findByKind(String kind,Pageable pageable);
    Page<?> findByType(String type,Pageable pageable);
    String addElement(Element element);

    List<Element> addExcelElement(List<Element> elementList);

    String updateElement(Element element);
    void delElement(Element element);
    Element findById(String id);
    List<Element> findAllByCasNo(String casNo);
//    Page<?> findAllByBaseinfoClass(String cl,Pageable pageable);
}
